<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box,
        .box {
            width: 100px;
            height: 100px;
            background-color: blue;
        }

        #container {
            width: 200px;
            height: 100px;
            background-color: blueviolet;
        }
    </style>
</head>

<body>
    <div id="box"></div>
    <div id="container"></div>
    <div class="box"></div>
    <div class="box"></div>

    <script>
        console.log(box);
        console.log(container);

        // const boxEle = document.querySelector('.box');
        // console.log(boxEle);

        // const boxEleArray = document.querySelectorAll('.box')
        // console.log(boxEleArray);

        // const boxEle = document.getElementById("box");
        // // console.log(boxEle);

        // const boxEleArray = document.getElementsByClassName("box");

        // // console.log(boxEleArray);
        // // console.log(boxEleArray[0]);

        // const divEleArray = document.getElementsByTagName("div")
        // console.log(divEleArray);
    </script>
</body>

</html>